package com.wedo.web;
/**
 * Created by cheng on 2017/10/19.
 */

import com.wedo.model.UserInfo;
import com.wedo.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author cheng
 * @create 2017/10/19
 */
@Controller
@RequestMapping("/hehe")
public class LoginController {

    @Autowired
    private UserInfoService userInfoService ;

    @RequestMapping("/goJsp")
    public String showJsp(){
        UserInfo user = userInfoService.getUserByName("admin") ;
        System.out.println("123");
        return "index" ;
    }
    @RequestMapping("/goJsp2")
    public String showJsp2(){
        System.out.println("123");
        return "index2" ;
    }
}
